package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcWelfareIntroduceMapper;
import com.csun.cmny.provider.model.domain.OmcWelfareIntroduce;
import com.csun.cmny.provider.service.OmcWelfareIntroduceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Slf4j
@Transactional
public class OmcWelfareIntroduceServiceImpl extends BaseService<OmcWelfareIntroduce> implements OmcWelfareIntroduceService {

    @Resource
    private OmcWelfareIntroduceMapper omcWelfareIntroduceMapper;

    @Override
    public int updateById(OmcWelfareIntroduce omcWelfareIntroduce) {
        return omcWelfareIntroduceMapper.updateByPrimaryKey(omcWelfareIntroduce);
    }
}
